import { EndActionType } from '@act/endAction'

const dm_state = {
  loading: false
}
const EndState = (state = dm_state, action) => {
  switch (action.type) {
    case EndActionType.toggle_loading:
      return Object.assign({}, state, {
        loading: action.payload.loading
      })
    default:
      return state
  }
}
EndState._default_state = dm_state
export default EndState
